<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    ﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta content="" name="description"/>
    <meta content="webthemez" name="author"/>
    <title>在线答疑平台</title>
    <!-- Bootstrap Styles-->
    <link href="/zxdyxt_php/Public/assets/css/bootstrap.css" rel="stylesheet"/>
    <!-- FontAwesome Styles-->
    <link href="/zxdyxt_php/Public/assets/css/font-awesome.css" rel="stylesheet"/>
    <!-- Morris Chart Styles-->
    <link href="/zxdyxt_php/Public/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet"/>
    <!-- Custom Styles-->
    <link href="/zxdyxt_php/Public/assets/css/custom-styles.css" rel="stylesheet"/>
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
    <link rel="stylesheet" href="/zxdyxt_php/Public/assets/js/Lightweight-Chart/cssCharts.css">
</head>
<body>
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                <strong><i class="icon fa fa-plane"></i>在线答疑平台</strong>
            </a>
            <ul class="nav navbar-top-links navbar-right">
            <li><a href="../Index/doLogOut"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a>
            </li>
            </ul>
        </div>


    </nav>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">

                <li>
                    <a href="/zxdyxt_php/question/QuestionList"><i class="fa fa-sitemap"></i> 问题管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/question/QuestionList">问题列表</a>
                        </li>
                    </ul>
                </li>

                <li>
                    <a href="/zxdyxt_php/question/QuestionAdd"><i class="fa fa-sitemap"></i> 提问<span class="fa arrow"></span></a>

                </li>


                <li>
                    <a href="/zxdyxt_php/course/CourseList"><i class="fa fa-sitemap"></i> 课程管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/course/CourseList">课程信息列表</a>
                        </li>

                    </ul>
                </li>

                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 个人中心<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/User/UserInfo">个人中心</a>
                        </li>
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/question/QuestionLikeList">我关注的问题列表</a>
                        </li>
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/question/AnswerLikeList">我收藏的答案列表</a>
                        </li>
                    </ul>
                </li>









            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->

    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="/zxdyxt_php/Public/assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="/zxdyxt_php/Public/assets/js/dataTables/jquery.dataTables.js"></script>
<script src="/zxdyxt_php/Public/assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
<!-- Custom Js -->
<script src="/zxdyxt_php/Public/assets/js/custom-scripts.js"></script>


</body>
</html>

      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap html5 Admin Template</title>
	<!-- Bootstrap Styles-->
    <link href="/zxdyxt_php/Public/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="/zxdyxt_php/Public/assets/css/font-awesome.css" rel="stylesheet" />
        <!-- Custom Styles-->
    <link href="/zxdyxt_php/Public/assets/css/custom-styles.css" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
    <div id="wrapper">

        <div id="page-wrapper" >
			  <div class="header">
                        <h1 class="page-header">
                            用户详情 <small>User Info</small>
                        </h1>


		</div>

            <div id="page-inner">

                <div class="row">
                    <div class="col-md-12">
                        <div class="jumbotron" >
                            <p>
                                姓名：<?php echo ($UserInfo['0']['u_name']); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <img src="/zxdyxt_php/Public/upload/userpics/<?php echo ($UserInfo['0']['u_pic']); ?>" alt="??"
                                        width="100dp" height="100dp"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                用户类型：<?php if($UserInfo['0']['u_state'] == '0'): ?>学生<?php else: ?>教师<?php endif; ?>

                            </p>
                            <p>
                                性别：
                                <?php if($UserInfo['0']['u_gender'] == '0'): ?>男
                                <?php else: ?>女<?php endif; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                生日：<strong><?php echo ($UserInfo['0']['u_birthday']); ?></strong>
                            </p>
                            <p>
                                个人简介：<?php echo ($UserInfo['0']['u_intro']); ?>
                            </p>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="/zxdyxt_php/Home/User/UserMod/user_id/<?php echo ($UserInfo['0']['u_id']); ?>" class="btn btn-danger ">修改</a>
                        </div>
                    </div>
                </div>
                <!-- /. ROW  -->

                <div class="row">

                    <div class="col-md-12 col-sm-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                已发消息
                            </div>
                            <div class="panel-body">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a href="#home" data-toggle="tab">提问列表</a>
                                    </li>
                                    <li class=""><a href="#profile" data-toggle="tab">回答列表</a>
                                    </li>
                                </ul>

                                <div class="tab-content">
                                    <div class="tab-pane fade active in" id="home">
                                        <?php if(is_array($QuestionList)): $i = 0; $__LIST__ = $QuestionList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$question): $mod = ($i % 2 );++$i;?><div class="panel panel-default">
                                                <div class="panel-heading">
                                                    <h4 class="panel-title">
                                                        问题标题：<a href="/zxdyxt_php/Question/QuestionInfo/q_id/<?php echo ($question["q_id"]); ?>"><?php echo ($question["q_title"]); ?></a>
                                                        <p><img src="/zxdyxt_php/Public/upload/questionpics/<?php echo ($question["q_pic"]); ?>" alt="??"
                                                                width="100dp" height="100dp"/></p>
                                                    </h4>
                                                </div>
                                                <div >
                                                    <div class="panel-body">

                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <button type="button" class="btn btn-danger btn-circle"><i class="fa fa-heart"><?php echo ($question["q_like_num"]); ?></i></button>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <?php echo ($question["u_name"]); ?>
                                                        <?php echo ($question["an_time"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <a href="/zxdyxt_php/question/QuestionMod/q_id/<?php echo ($question["q_id"]); ?>" class="btn btn-success ">修改问题</a>
                                                    </div>
                                                </div>
                                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </div>
                                    <div class="tab-pane fade" id="profile">
                                        <?php if(is_array($AnswerList)): $i = 0; $__LIST__ = $AnswerList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$answer): $mod = ($i % 2 );++$i;?><div class="panel panel-default">
                                            <div class="panel-heading">
                                                <h4 class="panel-title">
                                                    答案内容：<?php echo ($answer["an_content"]); ?>
                                                    <p><img src="/zxdyxt_php/Public/upload/answerpics/<?php echo ($answer["an_pic"]); ?>" alt="??"
                                                            width="100dp" height="100dp"/></p>
                                                </h4>
                                            </div>
                                            <div >
                                                <div class="panel-body">
                                                    <p>问题标题：<?php echo ($answer["q_title"]); ?></p>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <button type="button" class="btn btn-danger btn-circle"><i class="fa fa-heart"><?php echo ($answer["an_like_num"]); ?></i></button>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <?php echo ($answer["u_name"]); ?>
                                                    <?php echo ($answer["an_time"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <a href="/zxdyxt_php/question/AnswerMod/an_id/<?php echo ($answer["an_id"]); ?>" class="btn btn-success ">修改答案</a>


                                                </div>
                                            </div>
                                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>


                </div>


				<footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p></footer>
					</div>
			 <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
        </div>
     <!-- /. WRAPPER  -->
    <!-- JS Scripts-->

    <!-- jQuery Js -->
    <script src="/zxdyxt_php/Public/assets/js/jquery-1.10.2.js"></script>
      <!-- Bootstrap Js -->
    <script src="/zxdyxt_php/Public/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="/zxdyxt_php/Public/assets/js/jquery.metisMenu.js"></script>
      <!-- Custom Js -->
    <script src="/zxdyxt_php/Public/assets/js/custom-scripts.js"></script>
    
   
</body>
</html>